package com.itqf.ipmsys.mapper;

import com.itqf.ipmsys.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据管理员id查询全部角色
     * @param id
     * @return
     */
    List<Role> selectRolesByAdminId(Integer id);
}
